package com.dhcc.bpm.modules.bbs.service.impl;

import com.dhcc.bpm.modules.bbs.entity.Post;
import com.dhcc.bpm.modules.bbs.vo.PostVO;
import com.dhcc.bpm.modules.bbs.mapper.PostMapper;
import com.dhcc.bpm.modules.bbs.service.IPostService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @ClassName PostServiceImpl
 * @Description 论坛帖子表 服务实现类
 * @Author daina
 * @Date 2020/4/13 15:55
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Service
public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IPostService {
	/**
	 * @Description 查询帖子相关信息列表
	 * @Author daina
	 * @Date 14:41 2020/4/13
	 * @param page
	 * @param post
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.bbs.vo.PostVO>
	 **/
	@Override
	public IPage<PostVO> selectPostPage(IPage<PostVO> page, PostVO post) {
		return page.setRecords(baseMapper.selectPostPage(page, post));
	}

}
